package com.sky.loveshop.mapper;

import com.sky.loveshop.entity.Shop;
import com.sky.loveshop.entity.qo.ShopQO;
import com.sky.loveshop.utils.MyMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShopMapper extends MyMapper<Shop> {

    List<Shop> searchAll(ShopQO shopQO);

    Shop getShopById(@Param("id") Integer id);

    Integer delShopById(@Param("id") Integer id);

    Integer updateShopById(Shop Shop);

    Integer insertOne(Shop Shop);

    List<Shop> getShopsByIds(@Param("shopIds") List<Integer> shopIds);
}